<template>
  <div class="singer">
    <index-list :data="singers"></index-list>
  </div>
</template>

<script>
import { getSingerList } from '@/service/singer'
import IndexList from '@/components/base/index-list/index-list.vue'

export default {
  name: 'SingerPage',
  components: {
    IndexList
  },
  // eslint-disable-next-line space-before-function-paren
  data() {
    return {
      singer: []
    }
  },
  // eslint-disable-next-line space-before-function-paren
  async created() {
    const result = await getSingerList()
    this.singers = result.singers
  }
}
</script>

<style lang="scss" scoped></style>
